<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试 Prototype(实例2)</title>
    <script src="https://cdn.staticfile.org/prototype/1.7.3/prototype.min.js"></script>
    <script>
        function myFunction() {
            $("h01").writeAttribute("style", "color:red").insert("Hello Prototype!");
        }
        Event.observe(window, "load", myFunction);
    </script>
</head>

<body>
    <h1 id="h01"></h1>
</body>

</html>